<div class="containertable">

<table class="box"><tr><th>{$smarty.const.LA_KONTAKT}</th></tr><td>
<h2>{$smarty.const.LA_KONTAKT}</h2>

{if $contact_ok}
  {$message_sent}
{else}


<form method="post" action="{$phpself}" name="itemForm" id="itemForm">

<input type="hidden" name="ad_owner" value="{$ad_owner}">
<input type="hidden" name="user_id" value="{$user_id}">
<input type="hidden" name="id" value="{$id}">
<input type="hidden" name="contact" value="1">
<input type="hidden" name="subject" value="{$smarty.const.SUBJECT_CONTACT_VENDOR}">
		
<!-- t1 -->
{$smarty.const.LA_MAIN_MESSAGE} <b>{$ad_owner}</b>.<br/>

  
  	{if $contact_fail}
		<ol class="red"> {$contact_fail} </ol>
	{/if}
  
  
<!-- t3 -->
<table border="0" cellspacing="1">
<tr>
  <td width="50%" valign="top"> {$smarty.const.ADD_USER_NAME} </td>
  <td width="50%" valign="top"> <input type="text" name="contact_name" value="{$contact_name}" size="35" > </td>
</tr>
<tr>
  <td width="50%" valign="top"> {$smarty.const.ADD_USER_EMAIL} </td>
  <td width="50%" valign="top"> <input type="text" name="contact_email" value="{$contact_email}" size="35" > </td>
</tr>
<tr>
  <td width="50%" valign="top"> {$smarty.const.LA_CONTACT_MSG} </td>
  <td width="50%" valign="top"><textarea rows="5" name="contact_message" cols="27" rows="10">{$contact_message}</textarea></td>
</tr>

{if $image_validation}
   <tr>
     <td> {$smarty.const.LA_IMG_VER}:</td>
     <td valign="top" class="star"><img src="val_img.php" alt="" /></td></tr>
    
     
    <tr>
     <td> {$smarty.const.LA_IMG_VER2}:</td>
     <td valign="top" class="star">
     <input type="text" class="txt" name="validate_sign" size="16" maxlength="16" /> *</td></tr>
{/if}
</table>


<input type="submit" value="{$smarty.const.LA_KONTAKT}" name="submit" class="button" />
</form>
{/if}

<p>&nbsp;</p>

</td></tr></table>


{literal}
<script language="javascript" type="text/javascript">
<!--
content=document.getElementById("contact_name");
if( content != null ){content.focus();}
-->
</script>
{/literal}

</div>